package com.hziee.graduate.ticket.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@TableName("t_coupon")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Coupon extends Model<Coupon> {

    @TableId
    private Long couponId;
    //价格
    private Integer couponPrice;
    //总数
    private Integer couponNum;
    //库存
    private Integer couponStock;
    //开始时间
    private LocalDateTime beginTime;
    //结束时间
    private LocalDateTime endTime;
    // 创建时间
    private LocalDateTime createTime;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.couponId;
    }
}

